package com.kakarote.hrm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 员工、部门修改记录表
 * </p>
 *
 * @author guomenghao
 * @since 2021-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_employee_data_change_record")
@ApiModel(value = "HrmEmployeeDataChangeRecord", description = "员工、部门修改记录表")
public class HrmEmployeeDataChangeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long recordId;

    @ApiModelProperty(value = "类型：1-员工，2-部门")
    private Integer type;

    @ApiModelProperty(value = "修改员工编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long employeeId;

    @ApiModelProperty(value = "修改部门编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deptId;

    @ApiModelProperty(value = "提交员工所在部门编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long subDeptId;

    @ApiModelProperty(value = "提交员工编号")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long subEmployeeId;

    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "备注")
    private String remark;

}
